package com.heima.model.behavior.dtos;

import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;

/**
 * @Author XHui
 * @Since 2024/2/22 8:53
 * @Version 1.0
 */
@Data
public class LikesBehaviorDTO {

    /**
     * 文章ID：
     */
    @NotNull(message = "文章ID不能为空")
    private Long articleId;

    /**
     * 设备 ID
     */
    @NotNull(message = "设备ID不能为空")
    private Integer equipmentId;

    /**
     * 操作 0: 点赞  1: 取消点赞
     */
    @Range(min = 0, max = 1, message = "操作仅能为0: 点赞, 1: 取消点赞")
    private Integer operation;

    /**
     *  0: 文章  1: 动态
     */
    @Range(min = 0, max = 1, message = "类型仅能为 0: 文章  1: 动态")
    private Short type;
}
